<style>
body {
	background: #fff;
}
.green {color:#09ba07}
.green-bg {background:#09ba07}
.fui-content{background:#fff}
.fe-floatback a {
    width: 1.3rem;
    height: 1.3rem;
    line-height: 1.3rem;
    opacity: 0.6;
}
.fe-mod-14 {
    min-height: 174px;
	background: #fff;
}

.fe-mod-14 a , .fe-mod-14 a:hover {
    color: inherit;
    text-decoration: none;
}

.fe-mod-14 img {
    width: 100%;
    display: block;
}

.fe-mod-14-menu {
    height: 45px;
    width: 100%;
    position: absolute;
    bottom: 0px;
    left: 0px;
    background: rgba(0,0,0,0.4);
    color: #fff;
}

.fe-mod-14-menu a {
    color: inherit;
}

.fe-mod-14-nav {
    height: 40px;
    width: 25%;
    padding-top: 5px;
    float: left;
    text-align: center;
    font-size: 12px;
}

.fe-mod-14-nav i {
    font-size: 18px;
}

.fe-mod-14-nav-on {
    height: 45px;
    border-bottom: 3px solid #dd2322;
}

.fe-mod-14-shopname {
    height: 24px;
    width: 100%;
    position: absolute;
    top: 6rem;
    left: 0px;
}
.fe-mod-14-name {
    height: 1.4rem;
    width: auto;
    line-height: 1.4rem;
    margin: auto;
    display: table;
    font-size:0.7rem;
    padding: 0px 15px;
}
.fe-mod-14-map {
    width: auto;
    background: rgba(0,0,0,0.2);
    margin: auto;
    display: table;
    border-radius: 1.4rem;
    font-size:0.6rem;
    color: #fff;
    padding: 0px 0.7rem;
}

.fe-mod-14-shoplogo {
    height: 80px;
    width: 80px;
    padding: 4px;
    margin-left: -40px;
    position: absolute;
    top: 2.5rem;
    left: 50%;
}
.fe-mod-14-shoplogo-img {
    height: 70px;
    width: 70px;
    padding: 4px;
    border-radius: 10px;
    margin: auto;
}
.fe-mod-14-shoplogo-img .vip {
	background: #09ba07 none repeat scroll 0 0;
    color: #fff;
    position: absolute;
    top: 2.6rem;
	margin-left:2.2rem;
	height: 0.85rem;
    width: 0.85rem;
    vertical-align: top;
    z-index: 100;
	line-height:1.2;
	text-align:center;
	border: 1.3px solid #fff;
	border-radius:0.85rem;
}
.fe-mod-14-shoplogo-img img {
    height: 60px;
    width: 60px;
    border-radius: 10px;
}
.fe-mod-14-shopinfo {
	position: absolute;top:9.2rem;left:2.5%;width:95%;padding: 0px 0 10px;background-color: #fff;border-radius: 10px;border: 1px solid #f2f2f2;
}
.fe-mod-14-shopinfo .desc {
	padding:0 0.8rem;
	font-size:0.6rem;
}
.fe-mod-14-shopinfo .data {
	padding:0 0.8rem;
	margin-top:0.6rem;
	font-size:0.55rem;
	color:#999
}
.post-card .image img { border-radius:2.2rem;}
.item-line-nav {margin:0.2rem;padding: 0.1rem;background-color: #09ba07;border-radius: 10px;text-align:center;line-height:1.2rem}
</style>
<div ng-include="sys_html('_header')"></div>
<div class="fui-page order-create-page fui-page-current" >
	<div class="fui-content">
		<div class="fe-mod fe-mod-14">
			<div class="fe-floatback" style="position: absolute;right:0.6rem;top:5rem;width:4rem;">
				<a ng-click="access_json('jy_zhaopin/upjob//')" style="width:1.6rem;height:1.6rem;background:#fff;margin:0.2rem auto">
					<i class="icon icon-tianjia" style="color:#000;line-height:1.6rem;font-size:1rem"></i>
				</a>
				<span class="c" style="font-size:0.60rem">发布信息</span>
			</div>
			<img ng-src="{{tomedia(pagedata.setting.topbg) || '../addons/jy_zhaopin/resource/images/topbg.jpg'}}" style="height:9rem"/>
			<div class="fe-mod-14-shopname">
				<div class="fe-mod-14-name">{{pagedata.group.title||'所有分类'}}</div>
				<div ng-if="pagedata.pcd" class="fe-mod-14-map"><i class="icon icon-map" style="color: #fff;"></i> {{pagedata.pcd.city}}</div>
			</div>
			<div class="fe-mod-14-shoplogo"> 
				<div class="fe-mod-14-shoplogo-img">
					<img ng-src="{{tomedia(pagedata.group.image) || '../addons/jy_zhaopin/resource/images/toplogo.jpg'}}"/>
					<span class="vip"><i class="icon jinyunicon icon-vip5" style="font-size:0.5rem;padding-left:0.1rem;color:#fff"></i></span>
				</div>
			</div>
			<div class="fe-mod-14-shopinfo">
				<div class="desc overflow-h2">{{pagedata.group.desc}}</div>
				<div class="data">
				<span>数量： {{pagedata.list.length || 0}}</span> 
				</div>
			</div>
		</div>
		<div class="fui-searchbar bar" style="z-index: 0;">
			<div ng-class="{'searchbar':1,'searchbar-active':pagedata.searchbar ==1}" style="background:#fff">
					<div style="position: relative;left:0;top:0;">
						<div class="search-input">
							<i id="searchsub" class="fa fa-search"  ng-click="pagedata.getlist(1)"></i>
							<input type="search" placeholder="输入搜索" class="search" ng-model="pagedata.params.keyword" style="text-align: left; color: #999; font-size:0.56rem;background:#f9f9f9" />
						</div>
					</div>
			</div>
		</div>
		<div ng-if="pagedata.list.length<1" class="fui-card fui-card-list fui-card-full post-card">
			<a class='fui-card-info' style="margin-bottom:0.3rem">
				<div class="image">
					<img ng-src="{{tomedia(pagedata.member.avatar) || '../core/resource/images/nopic.jpg'}}"/>
				</div>
				<div class="text">
					<span class="title" style="height:1rem;color:#f60">{{pagedata.member.nickname || '匿名'}}</span>
					<span class="subtitle" style="font-size:0.5rem;padding-top:0.1rem">抢沙发...</span>
				</div>
			</a>
			<div  class="fui-card-content" style="margin-left:2.5rem;">
				<b class="fui-card-content-title">
					该分类下暂无信息！
				</b>
				<div class="item-line-nav" style="margin-right:2rem" href="javascript:;" ng-click="access_json('jy_zhaopin/upjob/')">
					<i class="icon icon-shuru" style="color:#fff"></i> <span class="subtitle" style="color:#fff">我要发布</span>
				</div>
			</div>
		</div>
		<div ng-if="loading" class='infinite-loading'><span class='fui-preloader'></span><span style="margin-left:1.5rem"> 正在加载...</span></div>
		<div class="fui-card fui-card-list fui-card-full post-card" ng-repeat="row in pagedata.list">
			<a class='fui-card-info' style="margin-bottom:0.3rem" ng-click="access_json('/item_detail//id='+row.id)" >
				<div class='image'>
					<img ng-src="{{tomedia(row.member.avatar) || '../core/resource/images/nopic.jpg'}}"  />
				</div>
				<div class="text">
					<span class="title" style="height:1rem;color:#f60">{{row.member.nickname || '匿名'}} <i ng-if="row.merchid" class="icon icon-dianpu" style="color:red"></i></span>
					<span class="subtitle" style="font-size:0.5rem;padding-top:0.1rem">{{row.createtime || '1天前'}} 发布</span>
				</div>
			</a>
			<div class="fui-card-content" style="margin-left:2.5rem;padding-bottom:0.2rem" ng-click="access_json('/item_detail//id='+row.id)" >
				<b class="fui-card-content-title">
					{{row.title || '未知标题'}} <span ng-if="row.type ==1 || row.type ==2 || row.type ==6" class="price red">￥{{row.price ||'0.00'}}</span>
				</b>			
			</div>
			<div>
				<div  ng-if="row.remark || row.images.length>0" class="fui-card-images" style="margin-left:2.7rem;padding:0.2rem;" ng-click="access_json('/item_detail//id='+row.id)" >
					<p ng-if="row.remark">{{row.remark}} </p>
					<img ng-if="row.images.length>0" ng-repeat="img in row.images track by $index" ng-src="{{tomedia(img) || '../core/resource/images/nopic.jpg'}}"  style="width:4rem;height:4rem;object-fit: cover;margin:0 0.1rem" />
				</div>
			</div>
			<div style="margin:0.2rem 0.5rem 0.2rem 2.7rem;padding: 0.2rem;">
				<div class="subtitle"><i class="icon icon-map" style="font-size:0.66rem"></i> <a ng-click="pagedata.openLocation(row);" style="color:#61bba7">{{row.province+row.city+row.district+row.address || '暂时无地址'}} </a> <span ng-if="row.juli">(距离：{{row.juli}}km)</span></div>
				<div style="margin:0.2rem;font-size:0.56rem;color:#999"><span>有{{row.looks || 18}}人看过</span><span style="color:#09ba07;float:right"></span></div>
			</div>		
			<div style="margin:0.3rem 0.7rem 0.3rem 2.7rem;font-size:0.56rem;color:#999;height:1rem">
			<span style="float:right">
			<span ng-if="row.isme ==1" href="javascript:;" ng-click="access_json('jy_zhaopin/buytop//pid='+row.id)"><i class="icon icon-zhiding"></i> 置顶</span>
			<span ng-if="row.isme ==1" style="margin-left:0.6rem" ng-click="post({},'del','id='+row.id,'','确认删除吗？')"><i class="icon icon-shanchu1" style="color:#000"></i> 删除</span>
			<span ng-click="pagedata.setshoucang(row.id);toogle(row,'isshoucang',[1,0])" style="margin-left:0.6rem"><i ng-class="{'icon jinyunicon':1, 'icon-favorite':row.isshoucang!=1,'icon-favoritesfilling':row.isshoucang==1}"></i> {{row.isshoucang !=1?'收藏':'已收藏'}}</span>
			<span style="margin-left:0.6rem" onclick="$('#showremark').modal();" ng-click="pagedata.post.pid=row.id"><i class="icon icon-pingjia3" style="color:#000"></i> 留言</span>
			<span style="margin-left:0.6rem" onclick="$('#showsharecover').modal();"><i class="icon icon-skip" style="color:#000"></i> 转发</span>
			</span>
			</div>
			<div ng-if="row.msgnum>0" style="margin:0.2rem 0.7rem 0.2rem 2.7rem;padding: 0.5rem;background-color: #f9f9f9;border-radius: 10px;">
				<div ng-repeat="m in row.msg" style="font-size:0.56rem"><span>{{m.member.nickname || '匿名'}}</span>：<span style="color:#999">{{m.comment || '无效留言'}}</span></div>
				<div ng-if="row.msgnum>5" style="margin-top:0.5rem;font-size:0.56rem;color:#999">还有{{row.msgnum -5}}条留言</div>
			</div>
		</div>
	</div>
</div>
<!--分享弹层-->
<div id="showsharecover" class="modal fade" tabindex="-1" style="z-index:99999;display:none;">
<div class="modal-dialog" style="width:100%;left:0;top:0">
	<div id="cover">
		<div class='fui-mask-m visible'></div>
		<div class='arrow'></div>
		<div class='content'>请点击右上角<br/>通过【发送给朋友】<br/>转发给好友哦</div>
	</div>
</div>
</div>
<!--留言-->
<div id="showremark" class="modal fade" tabindex="-1" style="z-index:99999;display:none;">
	<div class="modal-dialog" style="width:100%;left:0;bottom:0">
		<div class="modal-bottom">
			<div class="fui-cell-group">
				<div class="fui-cell">
					<div class="fui-cell-label" style="width:100px;font-size:0.9rem">留言</div>
				</div>
				<div class="fui-cell">
					<div class="fui-cell-info c000">
						<textarea rows="5" placeholder="50字以内（选填）" ng-model="pagedata.post.msg"></textarea>
					</div>
				</div>
			</div>
			<div class="fui-navbar">
				<a aria-hidden="true" data-dismiss="modal" ng-click="post(pagedata.post,'setmsg')" class="nav-item btn btn-success confirmbtn">确定</a>
			</div>
		</div>
	</div>
</div>
<div ng-include="sys_html('_footer')"></div>
<script>
scope.loading = true;  //状态标记
scope.isnodata = false;
scope.pagedata.list =[];
//滚动加载
scope.pagedata.params.keyword = ''
var lat=''
var lng=''
window.scope.location(function(res){
		scope.pagedata.pcd.province = res.addressComponents.province;
		scope.pagedata.pcd.city = res.addressComponents.city;
		lat=res.lat_lng.lat
		lng=res.lat_lng.lng
		var pcd=res.addressComponents
		getlist(1,pcd,lat,lng);
});
scope.selectarea = function(province,city,district){
	//scope.$apply(function(){
		scope.pagedata.pcd.province = province;
		scope.pagedata.pcd.city = city;
		scope.pagedata.pcd.district = district;
		getlist(1,scope.pagedata.pcd,lat,lng);
	//});
}
var page = 1;
function getlist(type,pcd,lat,lng){
		if(type==1){
			page = 1;
			scope.pagedata.list =[];
			scope.isnodata=false;
		}
		if(scope.isnodata){
			return false;
		}
		var url='jy_zhaopin/index/getlist/page='+page+'&lat='+lat+'&lng='+lng
		if(scope.pagedata.type){
			url += '&pid='+scope.pagedata.type
		}
		scope.post_json(url,{'pcd':pcd},function(data){
							if(data !='none'){
								for (var i=0;i<data.list.length;i++){
									scope.pagedata.list.push(data.list[i]);
								}
								if(page >1){
									$(".merchgroup").animate({scrollTop:0},300);
								}
								if(data.list.length<1){
									scope.isnodata=true;
								}
								page++;
								scope.loading = false;
								scope.$apply();
							}else{
								scope.pagedata.list =[];
								scope.loading = false;
							};
		});
}
scope.pagedata.scroll_bottom=function(){
	if(!scope.isnodata && !scope.loading){
		getlist(0,scope.pagedata.pcd,lat,lng);
	}
}
//获取关注
scope.pagedata.setfollow=function(){
	var params={
		op:'follow',
		callback:function(res){
			scope.message(res)
		}
	};
	scope.post_json(params);
}
//收藏订阅
scope.pagedata.setshoucang=function(pid){
	var params={
		data:{'isshoucang':scope.pagedata.isshoucang,'pid':pid},
		op:'shoucang',
		callback:function(res){
			scope.message(res)
		}
	};
	scope.post_json(params);
}
//手机软键盘--搜索
$("body").keydown(function() {
    if (event.keyCode == "13") {
        $('#searchsub').click();
    }
});
</script>